package com.k.base.jdk.list;

public class FunctionDO {
    private String guid;
    private String funcCode;
    private String funcName;
    private String languageTag;
    private String sysCode;

    public FunctionDO() {
    }

    public FunctionDO(String guid, String funcCode,String funcName, String languageTag, String sysCode) {
        this.guid = guid;
        this.funcCode = funcCode;
        this.funcName = funcName;
        this.languageTag = languageTag;
        this.sysCode = sysCode;
    }

    public String getGuid() {
        return guid;
    }

    public String getFuncCode() {
        return funcCode;
    }

    public void setFuncCode(String funcCode) {
        this.funcCode = funcCode;
    }

    public void setGuid(String guid) {
        this.guid = guid;
    }

    public String getFuncName() {
        return funcName;
    }

    public void setFuncName(String funcName) {
        this.funcName = funcName;
    }

    public String getLanguageTag() {
        return languageTag;
    }

    public void setLanguageTag(String languageTag) {
        this.languageTag = languageTag;
    }

    public String getSysCode() {
        return sysCode;
    }

    public void setSysCode(String sysCode) {
        this.sysCode = sysCode;
    }

    @Override
    public String toString() {
        return "FunctionDO{" +
                "guid='" + guid + '\'' +
                ", funcCode='" + funcCode + '\'' +
                ", funcName='" + funcName + '\'' +
                ", languageTag='" + languageTag + '\'' +
                ", sysCode='" + sysCode + '\'' +
                '}';
    }
    public String toSql(){
        StringBuilder sb = new StringBuilder();
        sb.append("INSERT INTO public.s_sched_plan_detail ");
        sb.append("(")
                .append("guid,funcCode,funcName,languageTag,sysCode")
                .append(")");
        sb.append(" values ");
        sb.append("(");
        if(guid!=null){
            sb.append("'").append(guid).append("'");
        }else{
            sb.append((String) null);
        }
        sb.append(",");
        if(funcCode!=null){
            sb.append("'").append(funcCode).append("'");
        }else{
            sb.append((String) null);
        }
        sb.append(",");
        if(funcName!=null){
            sb.append("'").append(funcName).append("'");
        }else{
            sb.append((String) null);
        }
        sb.append(",");
        if(languageTag!=null){
            sb.append("'").append(languageTag).append("'");
        }else{
            sb.append((String) null);
        }
        sb.append(",");
        if(sysCode!=null){
            sb.append("'").append(sysCode).append("'");
        }else{
            sb.append((String) null);
        }
        sb.append(")");
        return sb.toString();
    }
}
